package org.bulu.project.system.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.bulu.project.system.model.entity.Follow;
import org.bulu.project.system.model.query.UserFollowQuery;
import org.bulu.project.system.model.vo.UserFollowVO;

import java.util.List;

/**
 * (Follow)表数据库访问层
 *
 * @author makejava
 * @since 2024-08-19 16:09:08
 */
@Mapper
public interface FollowMapper {
    List<UserFollowVO> checkUserFollow(@Param("queryParams") UserFollowQuery queryParams);

    //取关
    int delByIdInt(Integer id);

    //关注
    int addFollow(Follow follow);

    //修改分组
    int updateGroup(Follow follow);

    //获取粉丝列表
    List<UserFollowVO> getFansList(@Param("queryParams") UserFollowQuery queryParams);

    List<Follow> getFollowList(Integer userId);
}